import {http} from '@/libs/httpRequest';

// 表格数据
export function getList (params) {
  return http({
    url: '/admin/dict/list',
    method: 'get',
    params: params
  })
}


// 保存字典
export function save (data) {
  return http({
    url: '/admin/dict/save',
    method: 'post',
    data: data
  })
}

// 修改字典
export function update (data) {
  return http({
    url: '/admin/dict/update',
    method: 'post',
    data: data
  })
}

//删除字典
export function deleteDict(data){
  return http({
    url:'/admin/dict/delete',
    method:'delete',
    data:data
  })
}
